import axios from './index'

export function getRegApi(data) {
  return axios.post('/register',data)
}
export function getLoginApi(data) {
  return axios.post('/login',data)
}
export function getSwApi() {
  return axios.get('/swiper')
}
export function getCityApi() {
  return axios.get('/city')
}
export function getCity1Api() {
  return axios.get('/city/location',{params:{key:'09367722776aa3ebf9a578447b7fa5d8'}})
}
export function getSsApi(data) {
  return axios.get('/city/search',{params:{kw:data}})
}
export function getListApi() {
  return axios.get('/news/simple')
}
export function getList1Api() {
  return axios.get('/news')
}